home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Files
/
Directories
/
CatInfoLoop.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
609b
|
34 lines
// FileLoop.cp
#ifndef CatInfoLoop_h
#include "CatInfoLoop.h"
#endif
CatInfoLoop::CatInfoLoop()
: directory( Volume( 0 ) ),
unfinished( false )
{
}
CatInfoLoop::CatInfoLoop( Directory theDirectory )
: directory( theDirectory ),
index( 1 )
{
unfinished = info.TryToGet( directory, index );
}
void CatInfoLoop::Start( Directory theDirectory )
{
directory = theDirectory;
index = 1;
unfinished = info.TryToGet( directory, index );
}
void CatInfoLoop::operator++()
{
Assert( unfinished );
Assert( index < maxint16 );
index++;
unfinished = info.TryToGet( directory, index );
}